<a href='<?php e_action("labelAdd");?>'>添加标签</a><br/><br/>
<table id="dataTable">
    <thead>
    <tr>
        <th>ID</th>
        <th>标签名</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach($r['label'] as $v){?>
        <tr>
            <td><?php echo $v['id']?></td>
            <td><?php echo $v['name']?></td>
            <td><a href='<?php e_action("labelModify","id={$v['id']}");?>'>修改</a> / <a href='<?php e_action("labelDelete","id={$v['id']}");?>' onclick="return confirm('确定删除吗？');">删除</a></td>
        </tr>
    <?php }?>
    </tbody>
</table>
<?php
/** @var Page $page */
$page=$r['pages'];
?>
<?php echo $page->getPageHtml(); ?>
